< Prev(J) / Next(K) > / View :

Filename: /text/shared/02/01170700.xhp

(bookmark: bm_id3163829)
forms; HTML filters

フォーム; HTML フィルタ

HTML Filters and Forms
HTML フィルタおよびフォーム(hd_id3163829.1)

You can use all control elements and form events in HTML documents. There have been numerous events to date (for example, focus events), which have not been changed. They will continue to be imported and exported as ONFOCUS, ONBLUR, and so on for JavaScript and as SDONFOCUS, SDONBLUR, and so on for Office Basic.
HTML ドキュメントには、すべてのコントロール要素とフォームイベントを使用できます。 これまでにフォーカスイベントなどのさまざまなイベントがあり、これらは変更されていません。 これらのイベントは、JavaScript では ONFOCUS、ONBLUR などとして、Office Basic では SDONFOCUS、SDONBLUR などとして今後もインポートされ、エクスポートされます。(par_id3147285.2)

Generic names that consist of the Listener interface and the method name of the event are used for all other events: An event registered as XListener::method is exported as
その他のすべてのイベントに関しては、リスナーインタフェースおよびイベントのメソッド名から構成される一般名が使用されます。XListener::method として登録されているイベントは(par_id3150616.3)

SDEvent-XListener-method = "/* event-code */"
SDEvent-XListener-method = "/* event-code */"(par_id3147571.4)

Note that the XListener- and method components of this option are case sensitive.
このオプションの XListener- とメソッドコンポーネントでは、大文字と小文字が区別されることに注意してください。(par_id3152425.5)

Event handling of controls is performed using the Office API. If you assign an event to a control, an object registers itself internally as a "Listener" for a specific control event. To do this, the object must use a specific interface, for example the XFocusListener Interface, so that it can react to focus events. When the event occurs, the control then invokes a special method of the Listener interface when the control receives the focus. The internally registered object then invokes the JavaScript or Office Basic code, which was assigned to the event.
コントロールのイベント処理では、Office API が使用されます。コントロールにイベントを割り当てると、オブジェクトが特定のコントロールイベントに対する「リスナ」として自身を内部で登録します。このためには、オブジェクトがフォーカスイベントに反応することを可能にする特殊なインタフェース (XFocusListener インタフェースなど) を使用する必要があります。イベントの発生時、コントロールがフォーカスを受け取ると、この Listener インタフェースの特殊なメソッドを呼び出します。次に、内部的に登録されたこのオブジェクトは、イベントに割り当てられた JavaScript または Office BASIC コードを呼び出します。(par_id3153683.6)

The HTML filter now uses precisely these listener interfaces and method names so that it can import and export events as desired. You can register a focus event through
ここで HTML フィルタは、これらのリスナインタフェースとメソッドの名前を正確に使用するので、イベントを適宜にインポートおよびエクスポートできます。フォーカスイベントは、次の経路で登録できます。(par_id3156410.7)

<INPUT TYPE=text ONFOCUS="/* code */"
<INPUT TYPE=text ONFOCUS="/* code */"(par_id3150506.8)

rather than through the
次の経路では登録できません。(par_id3154289.9)

<INPUT TYPE=text SDEvent-XFocusListener-focusGained="/* code */"
<INPUT TYPE=text SDEvent-XFocusListener-focusGained="/* code */" 経由でも(par_id3155391.10)

register. Events can therefore be registered as desired, including those not offered in the list boxes. To define the script language of events, you can write the following line in the document header:
レジスタ。したがって、イベントはリストボックスに含まれていないものでも必要に応じて登録できます。イベントのスクリプト言語を定義するために、ドキュメントヘッダー内に次の行を書き込むことができます。(par_id3152996.11)

<META HTTP-EQUIV="content-script-type" CONTENT="...">
<META HTTP-EQUIV="content-script-type" CONTENT="...">(par_id3150443.12)

As CONTENT you can, for example, use "text/x-StarBasic" for Office Basic or a "text/JavaScript" for JavaScript. If no entry is made, JavaScript is assumed.
CONTENT に関しては、特に Office Basic 用には「text/x-StarBasic」を、JavaScript 用には「text/JavaScript」を使用できます。特に何も書いていない場合には、JavaScript が前提となります。(par_id3166410.13)

During exporting, the default script language will be defined based on the first module found in macro management. For events, only one language can be used per document.
エクスポート時に、マクロ管理機能にある最初のモジュールに基づいて、標準スクリプト言語が定義されます。イベントでは、ドキュメントごとにひとつの言語だけを使用できます。(par_id3146797.14)


< Prev / Next >